package actions.profesionales;

import DAO.ProfesionalDAO;

import com.opensymphony.xwork2.ActionSupport;

public class EliminarProfesional extends ActionSupport {

	private String id;
	
	@Override
	public String execute() throws Exception {
		ProfesionalDAO dao = new ProfesionalDAO();
		dao.borrar(Integer.parseInt(this.getId()));
		return SUCCESS;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
